Skip to main content

Download Attachment

AutomatR.Office365.Activities.DownloadAttachment

The "Download Attachment" activity in AutomatR is part of the Office 365 activities package, allowing automation processes to utilize the Microsoft Office message API for downloading email attachments. This activity streamlines the process of saving email attachments to a specified local drive.

Properties

NameDescription
Input
Download ToSpecifies the full path of the local drive where you want to download the mail attachments. Ensure the path is correct and the drive exists. String variables containing the download path.
Mail MessageSpecifies the mail message variable representing the email from which to download attachments. This field only supports a mail message variable. Ensure the variable contains the necessary information for identification.
Misc
Display NameProvides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variables containing the desired display name.
Optional
DelaySpecifies the amount of time (in seconds) to wait before executing the "Download Attachment" activity. This can be useful for handling synchronization issues. Integer variables containing the delay duration. Ex.: If the amount of time is 1000 milliseconds or 1 sec, i.e., 1.
Output
ResultOutputs the result of the "Download Attachment" operation, indicating whether the download was successful or encountered errors. Variables of relevant types (e.g., Boolean variables) to store the operation result.

How to use:

  1. Drag and drop the "Download Attachment" activity onto the workflow.
  2. Configure the properties by specifying the delay duration, mail message variable representing the email, and the local drive path where attachments will be downloaded.
  3. Execute the workflow to download attachments from the specified email to the local drive.

Example: Consider an example where the "Download Attachment" activity is used to download attachments from a specific email:

Download Attachment:
Display Name: "Download Invoice Attachments"
Mail Message: mailMessageVariable
Download To: "C:\Attachments\"
Result: isDownloadSuccessful

In this example, the activity downloads attachments from the email specified by the "mailMessageVariable" to the local drive path "C:\Attachments\". The result of the operation (success or failure) is stored in the Boolean variable "isDownloadSuccessful" for further handling in the workflow.